<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<div class="news_share panel left">
	<div class="hd">
		<h2>
			精品资源
		</h2>
	</div>
	<div class="bd">
		<ul class="news_sh_list">
			<s:iterator value="resourceList" id="resource">
				<li>
					<a href="${url}" target="_blank">
						<s:if test="%{#resource.image != null}">
 							<img class="newest_img" src="userfiles/image/${image}"/>
   						</s:if>
						<s:else>
                 			<img class="newest_img" src="images/noImage.jpg"/>
						</s:else>
					 </a>
					<h3>
						<a href="${url }" target="_blank"> ${name} </a>
						
						<span class="time"> 
						<s:if test="%{#resource.type == 1}">
    										主日录音
                              </s:if> 
                              <s:if test="%{#resource.type == 2}">
                                                                                                                      属灵文章
       	                      </s:if>
       	                </span>
						<span class="time"> <s:date name='gmtModify'
								format='yyyy-MM-dd' /> </span>
					</h3>
					<P>
						${description }
					</P>
					<a class="button_download" href="${url }" target="_blank">点击下载↓</a>
				</li>
			</s:iterator>
		</ul>
	</div>
</div>
<div class="clear"></div>